package com.sc.design.prototype;


import java.util.Random;
import java.util.UUID;

public class Client {

    private static int MAX_COUNT=6;
    public static void main(String[] args) {
        int i=0;
        Mail mail = new Mail(new AdvTemplate());
        mail.setTail("sc版权所有");
        while (i<MAX_COUNT){
            Mail cloneMail = mail.clone();
            cloneMail.setAppe("xx先生" );
            cloneMail.setReceiver(UUID.randomUUID().toString());
            sendMail(cloneMail);
            i++;
        }
    }
    public static void sendMail(Mail mail){
        System.out.println("标题"+mail.getSubject()+mail.getReceiver());
    }
}
